using System.Collections;
using System.Collections.Generic;
using System.Xml.Linq;
using UnityEngine;
using UnityEngine.InputSystem;

public class BurinSkill1Tag : FreeListObj
{
    private SkillData srcData;
    public Character owner;

    public void Initialize(SkillData data)
    {
        srcData = data;
        owner = srcData.Source;
        SetLifeTime(5f);
    }

    public override void Destroy()
    {
        var player = srcData.Source as Player;
        var burin = player != null ? player.curWeapon as BurinDataSO : null ;
        if (burin != null && burin.PeekTag() == this)
        {
            burin.PeekTag(true);
        }

        base.Destroy();
    }
}
